// 1. 导入所有的公共组件
// 定义插件,并导出
import { App } from 'vue'
import XtxSkeleton from '@/components/XtxSkeleton/XtxSkeleton.vue'
import XtxCarousel from '@/components/XtxCarousel/XtxCarousel.vue'
import XtxMore from '@/components/XtxMore/XtxMore.vue'
import XtxBread from './XtxBread/XtxBread.vue'
import XtxBreadItem from './XtxBread/XtxBreadItem.vue'
import XtxNumber from './XtxNumber/XtxNumber.vue'
import XtxButton from './XtxButton/XtxButton.vue'
import XtxCheckbox from './XtxCheckbox/XtxCheckbox.vue'
import XtxMessage from './XtxMessage/XtxMessage.vue'
import XtxDialog from './XtxDialog/XtxDialog.vue'
import XtxSwitch from '@/components/XtxSwitch/XtxSwitch.vue';
import XtxCity from '@/components/XtxCity/XtxCity.vue';

export default {
  install(app: App) {
    app.component('XtxSkeleton',XtxSkeleton)
    app.component('XtxCarousel',XtxCarousel)
    app.component('XtxMore',XtxMore)
    app.component('XtxBread',XtxBread)
    app.component('XtxBreadItem',XtxBreadItem)
    app.component('XtxNumber',XtxNumber)
    app.component('XtxButton',XtxButton)
    app.component('XtxCheckbox',XtxCheckbox)
    app.component('XtxMessage',XtxMessage)
    app.component('XtxDialog',XtxDialog)
    app.component('XtxSwitch', XtxSwitch)
    app.component('XtxCity', XtxCity)
  }
}